package com.app.adapter;

import java.util.ArrayList;

public class ADScheduleAdpterItem {
	public static final int ITEM_SELECT = 0;
	public static final int ITEM_INPUT = 1;
	public static final int ITEM_DISABLE = 2;
	public static final int ITEM_DATE = 3;
	private String label;
	private String value;
	private int type;
	
	
	private ArrayList<String> valueList;
	
	private int selectIndex;
	
	public String getLabel() {
		return label;
	}
	
	public String getValue() {
		return value;
	}
	
	public void setValue(String value) {
		this.value = value;
	}
	
	public int getSelectIndex() {
		return selectIndex;
	}
	
	public void setSelectIndex(int selectIndex) {
		this.selectIndex = selectIndex;
	}
	
	public void setLabel(String label) {
		this.label = label;
	}
	
	public ArrayList<String> getValueList() {
		return valueList;
	}
	
	public void setValueList(ArrayList<String> valueList) {
		this.valueList = valueList;
	}
	
	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public static ADScheduleAdpterItem item(String label ,String value)
	{
		return item(label, value, ITEM_SELECT);
	}
	
	
	public static ADScheduleAdpterItem item(String label ,String value,int type)
	{
		ADScheduleAdpterItem item =  new ADScheduleAdpterItem();
		item.setLabel(label);
		item.setValue(value);
		ArrayList<String> list = new ArrayList<String>();
		list.add(value);
		item.setValueList(list);
		item.setType(type);
		return item;
	}
	
}
